package create.factory.factory;

import java.util.Date;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/19
 * @VERSION 1.0
 * @DESC
 */
public class AProduct implements Product{
    String name;
    Date produceTime;

    public AProduct(String name) {
        this.name = name;
        this.produceTime=new Date();
    }

    @Override
    public void show() {
        System.out.println("Product:"+this.name+";Produced by At "+this.produceTime);
    }
}
